package com.soap.controller;


import com.soap.entity.query.GoodsQuery;
import com.soap.entity.query.OrderQuery;
import com.soap.service.OrderService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ZhangPY
 * @since 2021-03-13
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private OrderService orderService;

    @ApiOperation(value = "分页查询订单")
    @RequestMapping(value = "/getOrderListByPage" , method = RequestMethod.POST)
    public String getOrderListByPage(HttpServletRequest request, OrderQuery orderQuery) {
        return orderService.getOrderListByPage(orderQuery);
    }
}
